package main.algorithms.aco;


import java.util.ArrayList;

import main.problemstruktur.Knoten;
import main.problemstruktur.Problem;


public class ACOProblem {
	private final Double[][] pheromon;
	private final Problem problem;
	public ACOProblem(Problem problem){
		this.problem=problem;
		int length =problem.getNodes().size();
		pheromon=new Double[length][length];
	}
	public void initializePheromon(double tau0){
		int length=problem.getNodes().size();
		for (int i=0;i<length;i++){
			for (int j=0;j<length;j++){
				pheromon[i][j]=tau0;
			}
		}
	}
	public ArrayList<Knoten> getNodes(){
		return problem.getNodes();
	}
	public int getAnzahlBereiche(){
		return problem.getAnzahlBereiche();
	}
	public Double getPheromon(int knotenID,int position){
		return pheromon[knotenID][position];
	}
	public void setPheromon(int knotenID,int position,Double pheromonValue){
		pheromon[knotenID][position]=pheromonValue;
	}
}
